<template>
  <el-form :model="form" size="small" label-position="right" label-width="110px">
    <el-row>
      <el-col :span="8">
        <el-form-item label="商品分类:">
          <el-select ref="select" v-model="value" placeholder="请选择" style="width: 260px">
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="商品状态:">
          <el-select ref="select" v-model="value" placeholder="请选择" style="width: 260px">
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
            <el-option label="item.label" :value="1" />
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="创建时间:">
          <el-date-picker
            type="daterange"
            style="width: 260px"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            :value="['2023-01-01', '2023-01-01']"
          />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="8">
        <el-form-item label="商品价格:">
          <number-range style="width: 260px" />
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="货号/商品编码:">
          <el-input style="width: 260px" placeholder="多个用“，”或空格分割" />
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="货号/商品编码:">
          <el-input style="width: 260px" placeholder="多个用“，”或空格分割" />
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="8">
        <el-form-item label="商品价格:">
          <number-range style="width: 260px" />
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="货号/商品编码:">
          <el-input style="width: 260px" placeholder="多个用“，”或空格分割" />
        </el-form-item>
      </el-col>
      <el-col :span="8">
        <el-form-item label="货号/商品编码:">
          <el-input style="width: 260px" placeholder="多个用“，”或空格分割" />
        </el-form-item>
      </el-col>
    </el-row>
  </el-form>
</template>

<script>
import NumberRange from '@/components/NumberRange'

export default {
  components: {
    NumberRange
  },
  data() {
    return {
      form: {}
    }
  }
}
</script>

<style lang="scss" scoped>
.range {
  .item-width {
    width: 260px!important;
  }
}
</style>
